package com.inno.auth;

import com.inno.auth.domain.feign.FeignProperties;
import com.inno.sms.api.SmsFeignService;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@SpringBootApplication
@ComponentScan("com.inno.auth.**")
@MapperScan("com.inno.auth.infra.basic.mapper")
@EnableAspectJAutoProxy
@EnableFeignClients(clients = {SmsFeignService.class})
@EnableConfigurationProperties(FeignProperties.class)
public class AuthApplication {
    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(AuthApplication.class, args);
    }
}
